package com.hongyuan.sellcoach.ui.home.beans;

import com.hongyuan.sellcoach.R;
import com.hongyuan.sellcoach.utils.TimeUtil;

public class TopTimeBean {

    /**
     * now_day : 2020-11-09
     * is_cur_date : 1
     * week : 一
     */

    private String now_day;
    private int is_cur_date;
    private String week;

    //是否选择
    private boolean select;

    public void setSelect(boolean select) {
        this.select = select;
    }

    public boolean isSelect() {
        return select;
    }

    public String getNow_day() {
        return now_day;
    }

    public void setNow_day(String now_day) {
        this.now_day = now_day;
    }

    public int getIs_cur_date() {
        return is_cur_date;
    }

    public void setIs_cur_date(int is_cur_date) {
        this.is_cur_date = is_cur_date;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    /*
     * 获取星期数
     * */
    public String getShowWeek(){
        if(this.is_cur_date == 1){
            return "今日";
        }
        return "周"+week;
    }

    /*
     * 获取日期
     * */
    public String getShowData(){
        return TimeUtil.formatDate(now_day,TimeUtil.dateFormatYMD,TimeUtil.dateFormatMD);
    }

    /*
    * 获取状态背景图片
    * */
    public int getBgId(){
        if(select){
            return R.mipmap.time_select_bulue_img;
        }else {
            return 0;
        }
    }

}
